package com.qfedu.labsystem.entity.bo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @ClassName Right
 * @Author ykx
 * @Date 2024/4/5 11:11
 * @Version 1.0
 */
@Data
@TableName("sys_right_t")
public class RightBO {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 路径
     */
    @TableField("path")
    private String path;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("is_leaf")
    private Boolean isLeaf;

    /**
     * 创建人
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "creation_date", fill = FieldFill.INSERT)
    private Date creationDate;

    /**
     * 最后一次更新人
     */
    @TableField(value = "last_update_by", fill = FieldFill.INSERT_UPDATE)
    private Long lastUpdateBy;

    /**
     * 最后一次更新时间
     */
    @TableField(value = "last_update_date", fill = FieldFill.INSERT_UPDATE)
    private Date lastUpdateDate;

    /**
     * 软删除标志
     */
    @TableField(value = "delete_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleteFlag;

    /**
     * 子菜单
     */
    private List<RightBO> children;
}
